package customer.zspt.cn.customer.utils;

import android.content.Context;
import android.media.AudioManager;
import android.media.SoundPool;
import android.os.Vibrator;

import java.util.HashMap;
import java.util.Map;

import customer.zspt.cn.customer.R;

/**
 * Created by Administrator on 2018/8/9 0009.
 */

public class MsgTipUtils {
    public static SoundPool soundPool = null;
    public static Map<Integer,Integer> map = new HashMap<>();
    /**震动管理器*/
    public static Vibrator vibrator = null;
    public static AudioManager manager;
    public static void playTip(Context context){
        soundPool  = new SoundPool(10, AudioManager.STREAM_MUSIC,0);
        map.put(0,soundPool.load(context, R.raw.msg,1));
        vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
        manager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
    }
}
